/* eslint-disable class-methods-use-this */
import _axios, { get, put, _delete } from '@/lin/plugin/axios'
import { method } from 'lodash'
import Config from '../config'
// 我们通过 class 这样的语法糖使模型这个概念更加具象化，其优点：耦合性低、可维护性。
class tool {
    // constructor() {}
 
    //字典子项服务dictid
    async dictitem(params){
        // const res = await get(`/dictitem/list`, data)
        // return res
        return  _axios({
            method:"post",
            url: Config.baseURL1+'/dictitem/list',
            params,
        })
    }
    async employee(params){
        return _axios({
        method:'post',
        url:Config.baseURL1+'/employee/list',
        params,
        })
    }
    async preview(params){
        return _axios({
            method:'get',
            url:Config.baseURL2+'/candidate/downloadFile',
            params,
            })
    }
    

}

export default new tool()